import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
} from 'typeorm';

@Entity()
export class XC_Users {
  // id为主键并且自动递增
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  username: string;

  @Column()
  password: string;

  @CreateDateColumn()
  createDate: string;

  @Column()
  avator: string;

  @Column()
  remark: string;

  @Column()
  role: string;

  @Column()
  status: number;
}

@Entity()
export class XC_MenuPermission {
  // id为主键并且自动递增
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  pid?: string;

  @Column()
  imageUrl?: string;

  @Column()
  title?: string;

  @Column()
  url?: string;
}
